package com.huahai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huahai.pojo.entity.Comment;

import java.util.List;

/**
* @author huahai
* @description 针对表【comment(评论)】的数据库操作Mapper
* @createDate 2025-08-26 15:32:53
* @Entity com.huahai.pojo.entity.CommentVO
*/
public interface CommentMapper extends BaseMapper<Comment> {

    /**
     * 递归查询所有后代评论ID，包括当前评论ID
     * @param commentId 起始评论ID
     * @return 所有相关评论ID列表
     */
    List<Long> getAllDescendantCommentIds(Long commentId);

}




